package inc.zhugastrov.sellerform;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "Basket")
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)

public class Basket implements Cloneable, Product {
	@Id
	private Long id;
	private String name;
	private String brand;
	private String about;
	private Double price;
	@Column(name = "AMOUNT")
	private int amountInStore;

	public Basket() {
	}

	public Basket(Item item) {
		setId(item.getId());
		setName("New");
		setBrand("New");
		setAbout("Nothing");
		setPrice(1.1d);
		setAmountInStore(1);
	}

	@Override
	protected Object clone() throws CloneNotSupportedException {
		return super.clone();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getAbout() {
		return about;
	}

	public void setAbout(String about) {
		this.about = about;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public int getAmountInStore() {
		return amountInStore;
	}

	public void setAmountInStore(int amountInStore) {
		this.amountInStore = amountInStore;
	}

	@Override
	@Transient
	public void setWherehousePrice(Double price) {
		// TODO Auto-generated method stub
		
	}

	@Override
	@Transient
	public Double getWherehousePrice() {
		// TODO Auto-generated method stub
		return null;
	}
}
